package com.xue.service.sys;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xue.common.core.IBaseDAO;
import com.xue.dao.sys.SysCodeDAO;
import com.xue.pojo.sys.SysCode;

//2019-03-14 10:46:41
@Service("SysCodeService")
public class SysCodeService implements ISysCodeService {
	@Autowired
	private SysCodeDAO dao;

	public List<SysCode> queryByCodeType(String codeType) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("codeType", codeType);
		return dao.queryAll(params);
	}

	@Override
	public IBaseDAO<SysCode, Integer> getDao() {
		return dao;
	}

}
